projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cc1002
)
xm: handle error in auxbin gracefully
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 7 Apr 2009 13:24:53 +0000
(14:24 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 7 Apr 2009 13:24:53 +0000
(14:24 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/python/xen/util/auxbin.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/util/auxbin.py
b/tools/python/xen/util/auxbin.py
index 75e38a838e79f3ccd8575039420e58caa481107f..e1830001bbdbe03d257e123f33e810585d7c73de 100644
(file)
--- a/
tools/python/xen/util/auxbin.py
+++ b/
tools/python/xen/util/auxbin.py
@@
-35,7
+35,11
@@
def execute(exe, args = None):
a = [ exepath ]
if args:
a.extend(args)
- os.execv(exepath, a)
+ try:
+ os.execv(exepath, a)
+ except OSError, exn:
+ print exepath, ": ", exn
+ sys.exit(1)
def pathTo(exe):